#ifndef _BSP_PID_H_
#define _BSP_PID_H_
#include <stdint.h>

typedef struct bsp_pid
{
    float SetPoint;   //目标值
    float Proportion; //比例常数
    float Integral;   //积分常数
    float Derivative; //微分常数
    float LastError;  //上次偏差
    float PreviError;
    float SumError;
    float PIDResponse; //响应输出
    float PIDFeedback; //反馈输入(和目标值作运算)
    float Sta;      //初始状态
    float Max;      //最大输出值
}PID_Typedef;


extern uint8_t PID_Run_Flag;

void Heat_Pid_Driver_Task(void *param);
void PID_Init(void);


#endif
